package com.suarte.core.dao;

import com.suarte.core.Company;
import com.suarte.core.Contact;
import com.suarte.core.WorkOrder;
import com.suarte.core.WorkOrderDetail;
import java.util.Date;
import org.appfuse.dao.GenericDao;

import java.util.List;

/**
 * @date   Dec 20, 2010
 * @author Ggutierrez
 */
public interface WorkOrderDao extends GenericDao<WorkOrder, Long>  {

    public List<WorkOrder> findByDescription(String description);
    public void store(WorkOrder object);
    public WorkOrder get(Long id);
    public void deleteDetails(List<WorkOrderDetail> args);
    public List<WorkOrder> findOrders(Long id, Long quotationId, String description, String user, Date date, Company company, Contact contact);
}
